//5：定义一个字符串，输出他对应的字节和字符。
public class Str {
    public static void main(String[] args) {
        String a = "秦始皇";
        char[] s1 = a.toCharArray();
        for (char result : s1) {
            System.out.print(result + ".");
        }
        System.out.println();
        byte[] s2 = a.getBytes();
        for (byte result : s2) {
            System.out.print(result + ".");
        }
    }
}